package com.hejia.alauda.service;

import com.hejia.alauda.entity.Sentence;
import com.hejia.alauda.utils.Pager;

/**
 * 
 * @author jatin
 *
 */
public interface SentenceService {

	/**
	 * 查询每日一句列表
	 * 
	 * @param pager
	 * @param title
	 * @return
	 */
	Pager<Sentence> findSentences(Pager<Sentence> pager, String content);

	/**
	 * 添加每日一句
	 * 
	 * @param sentence
	 * @return
	 */
	Sentence addSentence(Sentence sentence);

	/**
	 * 删除每日一句
	 * 
	 * @param id
	 */
	void deleteSentence(Long id);

	/**
	 * 查找每日一句
	 * 
	 * @param id
	 *            公告ID
	 * @return
	 */
	Sentence findSentenceById(Long id);

	/**
	 * 更新每日一句
	 * 
	 * @param sentence
	 *            公告
	 */
	void updateSentence(Sentence sentence);

}
